package me.zhengjie.modules.management.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @program: eladmin
 * @description: 会议明细表
 * @author: ming.cao
 * @create: 2020-12-14 18:39
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MrRecordDtl implements Serializable {
    @ApiModelProperty("会议明细ID")
    private Integer dtlId;

    @ApiModelProperty("会议ID")
    private Integer recordId;

    @ApiModelProperty("材料ID")
    private Integer materialId;

    @ApiModelProperty("材料类型")
    private Integer typeId;

    @ApiModelProperty("数量")
    @DecimalMin(value="0",inclusive=false,message="数量或时长请大于{value}")
    private BigDecimal number;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("单价")
    private BigDecimal price;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Timestamp createDateTime;

    @ApiModelProperty("创建人")
    private String createUserId;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Timestamp modifyDateTime;

    @ApiModelProperty("修改人")
    private String modifyUserId;

    @ApiModelProperty("是否必须")
    private Integer isEssential;

}
